use "$path\datasets\rd_dataset.dta", clear


keep if in_rdd_sample==1
bysort gkz legislative_period partei: keep if _n==1



cd FigureA7

hist margin_1, xtitle("Female candidate margin of victory (%)  ") bin(52) color(navy) gap(20) fraction lcolor(black) start(-0.95)  xline(0, lcolor(red))  ylab(,angle(horizontal))
graph export figureA7a.pdf, replace

DCdensity margin_1, breakpoint(0) generate(X1j Y1j r10 f1hat s1e_fhat)  graphname("figureA7b.pdf")
cd ..

